package com.aat.dxfy.springdata.mongodb.demo;

import org.springframework.data.annotation.Id;

public class Person {
	@Id
	private String id;

	private String firstName;
	private String lastName;


	public Person() {
		super();
	}
	
	public Person(String id) {
		super();
		this.id = id;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String toString() {
		return "Person [id=" + id + ", firstName=" + firstName + ", lastName="
				+ lastName + "]";
	}

}
